package org.vs.domain.model;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.vs.annotation.ImageField;

/**
 * 
 * @TableName t_vote
 */
@TableName(value ="t_vote")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TVote implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long voteId;

    private Long userId;

    /**
     *
     */
    private String title;

    /**
     *
     */
    @ImageField
    private String image;

    /**
     *
     */
    private String description;

    /**
     *
     */
    private LocalDateTime startTime;

    /**
     *
     */
    private LocalDateTime endTime;

    /**
     * 在合约中的地址
     */
    private String address;

    /**
     *
     */
    private LocalDateTime createTime;

    /**
     *
     */
    private LocalDateTime updateTime;

    /**
     *
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}